import {
  logout,
  login,
  register,
  sendCode,
  userInfo,
} from "./user"

import {
  getArticle,
  articlePage,
  articleLike,
  articleDislike,
  getArticleById,
  checkPassword,
} from "./arcitle"

import {
  sendBarrage,
  getBarrageList,
} from "@/apis/barrage";

import {
  getMaxFloor,
  getCommentByArticleId,
  getChildComment,
  publish,
  commentLike,
  commentDislike,
} from "./comment"

import {
  getFamily,
} from "./family"

import {
  getFriends,
  addFriend,
} from "@/apis/friend";

import {
  getWebInfo,
  getStatistics,
  getSort,
  getRecommendArticle,
  getRandomBackgroundImage,
  getMenu,
  getLabel,
} from "./home"

import {
  getNoticeById,
  getNotice,
} from "./notice"

import {
  getTimeLinePage
} from "@/apis/timeLine";


import {
  listWeiYan,
  deleteWeiYan,
  saveNews,
  listNews
} from './weiyan'

const createhttp = {
  logout,
  login,
  register,
  sendCode,
  userInfo,


  getArticle,
  articlePage,
  articleLike,
  articleDislike,
  getArticleById,
  checkPassword,


  sendBarrage,
  getBarrageList,


  getMaxFloor,
  getCommentByArticleId,
  getChildComment,
  publish,
  commentLike,
  commentDislike,


  getFamily,


  getFriends,
  addFriend,


  getWebInfo,
  getStatistics,
  getSort,
  getRecommendArticle,
  getRandomBackgroundImage,
  getMenu,
  getLabel,


  getNoticeById,
  getNotice,


  getTimeLinePage
}

export default createhttp
